<div class="form">
    <h3>Đăng ký học lớp: <?php echo $gclass->title; ?></h3>
    <?php

    /**
     * @var $form CActiveForm
     * @var $model RegisterClassForm
     */
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'register-class-form',
        'enableAjaxValidation' => true,
    )); ?>
    <?php echo $form->errorSummary($model); ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'name'); ?>
        <?php echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 150)); ?>
        <?php echo $form->error($model, 'name'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'birthday'); ?>
        <?php echo $form->textField($model, 'birthday', array('size' => 60, 'maxlength' => 150)); ?>
        <?php echo $form->error($model, 'birthday'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'email'); ?>
        <?php echo $form->textField($model, 'email', array('size' => 60, 'maxlength' => 150)); ?>
        <?php echo $form->error($model, 'email'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'tel'); ?>
        <?php echo $form->textField($model, 'tel', array('size' => 60, 'maxlength' => 150)); ?>
        <?php echo $form->error($model, 'tel'); ?>
    </div>
    <div class="row">
        <?php echo $form->hiddenField($model, 'cid');?>
    </div>
    <div class="row">
        <?php if (CCaptcha::checkRequirements() && Yii::app()->user->isGuest):?>
        <p>
            <?php echo $form->label($model, 'verifyCode')?>
            <?php $this->widget('CCaptcha')?>
        </p>
        <p>
            <?php echo $form->textField($model, 'verifyCode')?>
            <?php echo $form->error($model, 'verifyCode')?>
        </p>
        <?php endif?>
    </div>
    <div class="row">
        <?php echo CHtml::ajaxSubmitButton('Đăng ký', array());?>
    </div>

    <?php $this->endWidget(); ?>
</div>